Err: Module 'templates' is not exists!

240.          }
241.                  //判断模板是否存在
242.                  if(!file_exists(VIEW_DIR.DS.$template.DS.$tpl_name)){
243.                      err('模板文件 '.$tpl_name.' 不存在');
244.                  }
245.          $this->_v->assign(get_object_vars($this));
246.          $this->_v->assign($this->_data);
247.          if($this->layout){
248.              $this->_v->assign('__template_file'$tpl_name);
249.              $tpl_name $this->layout;
250.          }
1.  <?php
2.  define('APP_DIR'realpath('./'));
3.  define('DS'DIRECTORY_SEPARATOR);
4.  define('VIEW_DIR'APP_DIR.DS.'templates');
5.  require(APP_DIR.'/include/core.php');